home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1157 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: castle.nando.net!news
  2. From: sekruege@nando.net (Steve Krueger)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: slink V6.56 problem
  5. Date: 16 Jan 1996 01:26:26 GMT
  6. Organization: News & Observer Public Access
  7. Message-ID: <4deus2$nm5@castle.nando.net>
  8. References: <4ddhlk$hms@oracle.rz.uni-ulm.de>
  9. NNTP-Posting-Host: 152.52.37.89
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-NewsReader: Interworks_GRn 3.0b16 October 19, 1995
  14.  
  15. In article <4ddhlk$hms@oracle.rz.uni-ulm.de> gutmann@informatik.uni-ulm.de (Jens-Steffen Gutmann) writes:
  16. : Slink V6.56 seems to have problems when linking large object files.
  17. : I noticed it when trying to recompile the gnuplot source code.
  18. : Here is some code to produce a large source file:
  19. < snip >
  20. : Error 502: __writes symbol - Distance for Reloc16 > 32768
  21. : --------------------------------------------------------------------------
  22. : Home:Prog/problems/linker > cat SCOPTIONS
  23. : CODE=FAR
  24. : ERRORREXX
  25. : NOGENPROTODATAITEMS
  26. : GLOBALSYMBOLTABLE=include:all.gst
  27. : --------------------------------------------------------------------------
  28. : Same results without CODE=FAR.
  29. : If I try to compile and link with SASC 6.55 everything works fine:
  30. : --------------------------------------------------------------------------
  31. : Home:Prog/problems/linker > sc link linkprob.c
  32. : SAS/C Amiga Compiler 6.55
  33. : Copyright (c) 1988-1995 SAS Institute Inc.
  34. : ***Can't open GST file "include:all.gst" for read
  35. : Slink - Version 6.55
  36. : Copyright (c) 1988-1995 SAS Institute, Inc.  All Rights Reserved.
  37. : SLINK Complete - Maximum code size = 85128 ($00014c88) bytes
  38. : Final output file size = 101192 ($00018b48) bytes
  39. : --------------------------------------------------------------------------
  40.  
  41.  
  42. You will notice the waring in the 6.55 compile saying that it can't
  43. find all.gst. That's the key.
  44.  
  45. The file ALL.GST is compiled with CODE=NEAR (the default). Therefore,
  46. the function printf() gets NEAR associated with it. Adding CODE=FAR
  47. to the compile line will not change the call to anything in ALL.GST.
  48.  
  49. Therefore, you either need to make a new GST for CODE=FAR, or don't
  50. use the GST for CODE=FAR.
  51.  
  52.  
  53.  
  54. --                    |__  o\
  55.        ______         | W    \O
  56. __________  /__       |       H\_  
  57. __  ___/_  //_/       |      /-\   
  58. _(__  )_  ,<          |    /     \ 
  59. /____/ /_/|_|         |            
  60. sekruege@nando.net    |
  61.